package com.wysql.feign.client;

import com.wysql.feign.config.FeignName;
import com.wysql.feign.vo.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(value = FeignName.GHSJGL)
public interface GhsjglFeign {

    /**
     * 获取主变 obj_id mid
     */
    @PostMapping(value = "/xxwyspdwgh-ghsjgl/un1102PmsTSbZnycZbyqEdit/getMid")
    List<MidVo> getMidZb(@RequestBody Un1102PmsTSbZnycZbyqEditVo vo);

    /**
     * 主变66kV 根据id获取
     */
    @PostMapping(value = "/xxwyspdwgh-ghsjgl/un1102PmsTSbZnycZbyqEdit/selectByIdFeign")
    Un1102PmsTSbZnycZbyqEditVo selectZbByIdFeign(@RequestParam("id") Integer id);

    /**
     * 获取线路66kv obj_id mid
     */
    @PostMapping(value = "/xxwyspdwgh-ghsjgl/un1102PmsTSbZwycXl66Edit/getMid")
    List<MidVo> getMidXl66(@RequestBody Un1102PmsTSbZwycXl66EditVo vo);

    /**
     * 线路66 根据id获取
     */
    @PostMapping(value = "/xxwyspdwgh-ghsjgl/un1102PmsTSbZwycXl66Edit/selectByIdFeign")
    Un1102PmsTSbZwycXl66EditVo selectXl66ByIdFeign(@RequestParam("id") Integer id);

    /**
     * 获取线路10kv obj_id mid
     */
    @PostMapping(value = "/xxwyspdwgh-ghsjgl/un1102PmsTSbZwycXl10Edit/getMid")
    List<MidVo> getMidXl10(@RequestBody Un1102PmsTSbZwycXl10EditVo vo);

    /**
     * 线路10 根据id获取
     */
    @PostMapping(value = "/xxwyspdwgh-ghsjgl/un1102PmsTSbZwycXl10Edit/selectByIdFeign")
    Un1102PmsTSbZwycXl10EditVo selectXl10ByIdFeign(@RequestParam("id") Integer id);

    /**
     * 获取变电站66
     */
    @PostMapping(value = "/xxwyspdwgh-ghsjgl/un1102PmsTSbZnycDz66Edit/getMid")
    List<MidVo> getMidDz66(@RequestBody Un1102PmsTSbZnycDz66EditVo vo);

    /**
     * 获取变电站66 根据id获取
     */
    @PostMapping(value = "/xxwyspdwgh-ghsjgl/un1102PmsTSbZnycDz66Edit/selectByIdFeign")
    Un1102PmsTSbZnycDz66EditVo selectDz66ByIdFeign(@RequestParam("id") Integer id);
}
